package com.dcy;

import com.dcy.dao.StudentDao;
import com.dcy.domain.Student;
import com.dcy.utils.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class starter02 {
    public static void main(String[] args) {
        //测试多个基本类型变量作为参数
        SqlSession sqlSession= MyBatisUtil.getSqlSession();
        StudentDao studentDao = sqlSession.getMapper(StudentDao.class);
        List<Student> students = studentDao.selectStudentByAgeOrEmail(25, "haha@qq.com");
        System.out.println(students);
    }
}
